// import UserAccountLogin from '../views/user/account/UserAccountLogin.vue'
import UserLoginView from "@/views/user/UserLogin.vue";
import ChefInfoView from "@/views/chef/ChefInfo.vue";
import ClientInfoView from "@/views/client/ClientInfo.vue";
import OrderHistoryView from "@/views/client/OrderHistory.vue";
import OrderPageView from "@/views/client/OrderPage.vue";
import ReviewPageView from "@/views/client/ReviewPage.vue";
import ManagerInfoView from "@/views/manager/ManagerInfo.vue";
import FoodRankView from "@/views/public/FoodRank.vue";
import ServerInfoView from "@/views/server/ServerInfo.vue";
import FoodRecommendationView from "@/views/client/FoodRecommendation.vue";
import NoticeInfoView from "@/views/server/NoticeInfo.vue";
import UndoFoodView from "@/views/chef/UndoFood.vue";
import CookedFoodView from "@/views/chef/CookedFood.vue";
import FoodManageView from "@/views/chef/FoodManage.vue";
import MaterialManageView from "@/views/chef/MaterialManage.vue";
import RevenueSituationView from "@/views/manager/RevenueSituation.vue";
import ServerRankView from "@/views/manager/ServerRank.vue";
import TableManageView from "@/views/manager/TableManage.vue";
import CilentManageView from "@/views/manager/CilentManage.vue";

import HomeView from "@/views/HomeView.vue";

const routes = [
  {
    path: "/",
    redirect: "/home",
  },
  {
    path: "/login",
    name: "user-login",
    component: UserLoginView,
  },
  {
    path: "/home",
    name: "home",
    component: HomeView,
  },
  {
    path: "/client/info",
    name: "client-info",
    component: ClientInfoView,
    meta: {
      requireAuth: true,
    },
  },
  {
    path: "/client/order/history",
    name: "order-history",
    component: OrderHistoryView,
    meta: {
      requireAuth: true,
    },
  },
  {
    path: "/client/order/page",
    name: "order-page",
    component: OrderPageView,
    meta: {
      requireAuth: true,
    },
  },
  {
    path: "/client/review/page",
    name: "review-page",
    component: ReviewPageView,
    meta: {
      requireAuth: true,
    },
  },
  {
    path: "/chef/info",
    name: "chef-info",
    component: ChefInfoView,
    meta: {
      requireAuth: true,
    },
  },
  {
    path: "/manager/info",
    name: "manager-info",
    component: ManagerInfoView,
    meta: {
      requireAuth: true,
    },
  },
  {
    path: "/public/food/rank",
    name: "food-rank",
    component: FoodRankView,
    meta: {
      requireAuth: true,
    },
  },
  {
    path: "/server/info",
    name: "server-info",
    component: ServerInfoView,
    meta: {
      requireAuth: true,
    },
  },
  {
    path: "/food/recommendation",
    name: "food-recommendation",
    component: FoodRecommendationView,
    meta: {
      requireAuth: true,
    },
  },
  {
    path: "/notice/info",
    name: "notice-info",
    component: NoticeInfoView,
    meta: {
      requireAuth: true,
    },
  },

  {
    path: "/undo/food",
    name: "undo-food",
    component: UndoFoodView,
    meta: {
      requireAuth: true,
    },
  },
  {
    path: "/cooked/food",
    name: "cooked-food",
    component: CookedFoodView,
    meta: {
      requireAuth: true,
    },
  },
  {
    path: "/food/manage",
    name: "food-manage",
    component: FoodManageView,
    meta: {
      requireAuth: true,
    },
  },
  {
    path: "/revenue/stituation",
    name: "revenue-stituation",
    component: RevenueSituationView,
    meta: {
      requireAuth: true,
    },
  },
  {
    path: "/server/rank",
    name: "server-rank",
    component: ServerRankView,
    meta: {
      requireAuth: true,
    },
  },
  {
    path: "/table/manage",
    name: "table-manage",
    component: TableManageView,
    meta: {
      requireAuth: true,
    },
  },
  {
    path: "/material/manage",
    name: "material-manage",
    component: MaterialManageView,
    meta: {
      requireAuth: true,
    },
  },
  {
    path: "/revenue/situation",
    name: "revenue-situation",
    component: RevenueSituationView,
    meta: {
      requireAuth: true,
    },
  },
  {
    path: "/client/manage",
    name: "client-manage",
    component: CilentManageView,
    meta: {
      requireAuth: true,
    },
  },
];

export default routes;
